package nl.weeaboo.sh.danmaku.commands;

import nl.weeaboo.sh.danmaku.ShotModel;
import nl.weeaboo.sh.danmaku.Spell;
import nl.weeaboo.sh.danmaku.SpellBook;
import nl.weeaboo.sh.danmaku.Universe;

public class TPower extends Spell {

	private int power;
	
	public TPower(int power) {
		this.power = power;
	}
	protected TPower(TPower t) {
		super(t);		
		power = t.power;
	}
	
	public TPower clone() {
		return new TPower(this);
	}
	
	@Override
	public void step(Universe u, SpellBook sb, ShotModel s) {
		s.setPower(power);
		finish();
	}
	
}
